const CracoLessPlugin = require('craco-less');

module.exports = {
  devServer: {
    port: 3000, // 确保端口设置正确
    host: 'localhost', // 确保是正确的主机地址
    open: true,
  },
  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        lessLoaderOptions: {
          lessOptions: {
            modifyVars: {
              // '@primary-color': '#52c4',
              // '@link-color': '#52c41a',
              // '@success-color': '#52c41a',
            },
            javascriptEnabled: true,
          },
        },
      },
    },
  ],
}; 